<form id="{$form.name}" name="{$form.name}">
<style>
{literal}
.column_bar{
padding-top:5px;
}
{/literal}
</style>
<br/>
<div style="padding-left:35px; ">
	<div style="height:110px;">
	<h2>{$form.title}</h2>
	<table><tr><td>
		{if $form.remote_icon !='' }
		<div class="form_icon" style="float:left;padding:15px 15px 0px 0px;"><img  src="{$form.remote_icon}" border="0" /></div>
		{/if}
	
		<div style="float:left; width:300px;padding-top:10px;">
			{if $dataPanel.fld_form_title.element}
			<h1 style="padding-bottom:0px;height:28px;line-height:28px;">
			{$dataPanel.fld_form_title.element}
			</h1>
			{/if} 
			<div class="input_row" style="line-height:20px;padding-bottom:0px;height:20px;">		
			{$dataPanel.fld_form_description.element}
			</div>
			<div class="input_row" style="line-height:20px;padding-bottom:0px;height:20px;color:#999999;">		
			{$form.release_date}
			</div>
			
		</div>
	</td></tr></table>
	</div>
	
	<div style="padding-left:0px;">
	{foreach item=item key=itemName from=$dataPanel}
	{if $itemName != 'fld_form_description' AND $itemName != 'fld_form_title' }
	{if $item.type eq 'LabelBar' ||
		$item.type eq 'LabelText'
	}
		<table class="input_row">
		<tr>
		{if $item.label}
		<td >	
			<label style="text-align:left;line-height:18px;">{$item.label}</label>
		</td>		
		{/if}		
		<td>
			<span class="label_text" style="display:block;height:20px;padding-bottom:5px;line-height:24px;overflow:hidden;float:left;{if $item.width}width:{$item.width}px;{else}{if $default_label_text_width}{$default_label_text_width}{else}width:260px;{/if}{/if}">{$item.element}</span>			
			{if $errors.$itemName}
			<span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span>
			{elseif $item.description}
			<span class="input_desc" style="width:240px;">{$item.description}</span>			
			{/if}
		</td>
		</tr>
		</table>
	{else}
		<table class="input_row" >
		<tr>
		<td valign="top">	
			<label style="text-align:left;line-height:24px;">{$item.label}</label>
		</td>		
		</tr>
		<tr>
		<td valign="top" style="height:50px;">
			<span class="label_textarea" style="display:block;width:360px;">{$item.element}</span>			
			{if $errors.$itemName}
			<span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span>
			{elseif $item.description}
			<span class="input_desc" style="width:240px;">{$item.description}</span>			
			{/if}
		</td>
		</tr>
		</table>	
	
	{/if}
	{/if}
	{/foreach}
		
		<div style="height:10px;"></div>
		<p class="input_row" style="height:28px;">
			
			{foreach item=elem from=$actionPanel}
				{$elem.element}
			{/foreach}
		</p>
	</div>
	
		<div style="height:15px;">
		<div id='{$form.name}.load_disp' style="display:none;">
		<img  src="{$image_url}/form_ajax_loader.gif"/>
		</div>
		</div>
	
</div>
{if $form.install_state=='Not start yet' }

	<script>
	{literal}
	setTimeout("Openbiz.CallFunction('{/literal}{$form.name}{literal}.install({/literal}{$form.currentRecordId}{literal})',{'type':'','target':'','evthdl':'btn_install:btn_retry_onclick'});",1000);
	{/literal}
	</script>
{elseif $form.install_state=='Waiting'}
	<script>
	{literal}
	setTimeout("Openbiz.CallFunction('{/literal}{$form.name}{literal}.install({/literal}{$form.currentRecordId}{literal})',{'type':'','target':'','evthdl':'btn_upgrade:btn_retry_onclick'});",1000);
	{/literal}
	</script>
{elseif $form.install_state!='OK'  }

	<script>
	{literal}
	setTimeout("Openbiz.CallFunction('{/literal}{$form.name}{literal}.getProgress()',{'type':'','target':'','evthdl':'btn_get_progress:btn_get_progress'});",1000);
	{/literal}
	</script>

{/if}

<script>
Openbiz.Window.centerDialog(455,320); 
</script>
</form>